package com.hoshiicloud.common.constant.refund;

/**
 * @author qry
 * @date 2019/8/22 18:52
 *
 * refundOrder 的serviceType
 */
public enum RefundServiceTypeEnum {
    ONLY_REFUND(1,"仅退款"),
    REFUND_RETURN_GOODS(2,"退货退款");
    private int code;

    private String name;

    RefundServiceTypeEnum(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    public static String getRefundServiceType(int code){
        for (RefundServiceTypeEnum aparameterStatus : values()) {
            if (aparameterStatus.getCode() == code) {
                return aparameterStatus.getName();
            }
        }
        return "未匹配到";
    }

}
